package com.sc.nft.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.ActivityTaskRelation;
import com.sc.nft.mapper.ActivityTaskRelationMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

/**
 * (ActivityTaskRelation)表Dao层
 *
 * @author 王伟成
 * @since 2023-09-15 14:06:56
 */
@Slf4j
@Repository
public class ActivityTaskRelationDao extends ServiceImpl<ActivityTaskRelationMapper, ActivityTaskRelation> {


    public void deleteByActivityBasicsId(Long activityBasicsId) {
        lambdaUpdate().eq(ActivityTaskRelation::getActivityId,activityBasicsId).set(ActivityTaskRelation::getIsDelete,1).update();
    }
}
